package homework.day318.demo1;

public class Car extends Vehicle{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Car(){
        super();
    }

    @Override
    public void travel() {
        System.out.println("品牌为" + this.name + "小汽车正在行驶");
    }
}
